<template>
  <div>
    <h2>{{ count }}</h2>
  </div>
</template>

<script>
import { ref } from 'vue'
export default {
  setup() {
    const count = ref(0)
    const changeCount = (num) => {
      count.value += num
    }
    return {
      count,
      changeCount,
    }
  },
}
</script>
